package FileIOStream;

import java.io.File;
import java.io.IOException;

/**
 * @Author liangzai
 * @Description:
 */
public class Demo1 {
    public static void main(String[] args) throws IOException, InterruptedException {
        File file = new File("D:/code/java/J2025_1_13_test/test.tet");
        //file.createNewFile();
        System.out.println(file.getName());
        System.out.println(file.getAbsoluteFile());
        System.out.println(file.getAbsolutePath());
        System.out.println(file.getCanonicalPath());
        System.out.println(file.getParent());
        System.out.println(file.getPath());
        Thread.sleep(5000);
        file.deleteOnExit();
    }
}
















